package com.qiwenshare.file.controller;

import com.qiwenshare.common.exception.NotLoginException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/error")
public class ExceptionController {
    @RequestMapping("/nologin")
    public void handleException(HttpServletRequest request){
        throw (NotLoginException) request.getAttribute("filterError");
    }
}
